﻿CREATE proc [dbo].[SelectAttRefs]
@attIDs intlist readonly
as
select ar.*
from AttRefs ar
inner join @attIDs ids on ar.AttID = ids.value